package com.google.code.ptrends.common.entities;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class Price {
	private Date date;
	private float value;
	private Set<Item> items = new HashSet<Item>();
	private Set<Supplier> suppliers = new HashSet<Supplier>(); 

	public void setDate(final Date date) {
		this.date = date == null ? null : new Date(date.getTime());
	}

	public Date getDate() {
		return date == null ? null : new Date(date.getTime());
	}

	public void setValue(final float value) {
		this.value = value;
	}

	public float getValue() {
		return value;
	}

	public void setItems(Set<Item> items) {
		this.items = items;
	}

	public Set<Item> getItems() {
		return items;
	}

	public void setSuppliers(Set<Supplier> suppliers) {
		this.suppliers = suppliers;
	}

	public Set<Supplier> getSuppliers() {
		return suppliers;
	}

}
